package com.pet.server.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 服务订单表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-server-domain-entity-ServeOrder")
@Data
@NoArgsConstructor
@TableName(value = "t_serve_order")
public class ServeOrder implements Serializable {
  private static final long serialVersionUID = 8370630898809349972L;
  public static final String COL_ID = "id";
  public static final String COL_ORDER_SN = "order_sn";
  public static final String COL_ORDER_TOTAL_PRICE = "order_total_price";
  public static final String COL_SERVE_ORIGINAL_PRICE = "serve_original_price";
  public static final String COL_CREATE_TIME = "create_time";
  public static final String COL_SERVE_ID = "serve_id";
  public static final String COL_PET_OWNER_ID = "pet_owner_id";
  public static final String COL_SHOP_ID = "shop_id";

  /** 订单ID */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "订单ID")
  private Integer id;

  /** 订单编号 */
  @TableField(value = "order_sn")
  @ApiModelProperty(value = "订单编号")
  private String orderSn;

  /** 订单总金额 */
  @TableField(value = "order_total_price")
  @ApiModelProperty(value = "订单总金额")
  private Double orderTotalPrice;

  /** 服务价格 */
  @TableField(value = "serve_original_price")
  @ApiModelProperty(value = "服务价格")
  private Double serveOriginalPrice;

  /** 创建时间 */
  @TableField(value = "create_time")
  @ApiModelProperty(value = "创建时间")
  private LocalDateTime createTime;

  /** 服务项目ID */
  @TableField(value = "serve_id")
  @ApiModelProperty(value = "服务项目ID")
  private Integer serveId;

  /** 宠物主ID */
  @TableField(value = "pet_owner_id")
  @ApiModelProperty(value = "宠物主ID")
  private Integer petOwnerId;

  /** 门店id */
  @TableField(value = "shop_id")
  @ApiModelProperty(value = "门店id")
  private Integer shopId;
}
